import { defineComponent, ref } from "vue";

export default defineComponent({
	props: {
		tableData: Object, // 确保类型匹配
	},
	setup(props, context) {
		return () => (
			<el-table data={props.tableData.data} style={{ width: "100%" }}>
				{props.tableData.clums.map((item, index) => (
					<el-table-column fixed={item.fixed} key={item.props} type={item.type || null} prop={item.props} label={item.label} width={item.width} align={item.align} v-slots={item.render}></el-table-column>
				))}
			</el-table>
		);
	},
});
